define(function(require, exports, module) {
    window.$ = window.jQuery = require('$');
    require('bootstrap');
    require('common/bootstrap-modal-hack');

    exports.load = function(name) {
        name = './controller/' + name + '.js?';
        require.async(name + window.app.version, function(controller){
            if ($.isFunction(controller.run)) {
                controller.run();
            }
        });
    };

    window.app.load = exports.load;

    if (app.controller) {
        exports.load(app.controller);
    }

});